﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.CustomerProfileCommon
{
    /// <summary>
    /// 客户档案表
    /// </summary>
    [SugarTable("CustomerProfiles")]
    public class CustomerProfile : BaseEntity
    {
        /// <summary>
        /// 客户编号
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int CustomerProfileId { get; set; }
        /// <summary>
        /// 客户名称111
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string CustomerName { get; set; }
        /// <summary>
        /// 客户别名
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string WarehouseName { get; set; }
        /// <summary>
        /// 简称
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Abbreviation { get; set; }
        /// <summary>
        /// 所属省/市
        /// </summary>

        public string ProvinceCityId { get; set; }
        /// <summary>
        /// 公司地址
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Address {  get; set; }
        /// <summary>
        /// 邮编
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Zip {  get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Phone {  get; set; }
        /// <summary>
        /// 信用等级
        /// </summary>

        public int CreditRatingId { get; set; }
        /// <summary>
        /// 信用额度
        /// </summary>

        public decimal CreditLimit { get; set; }
        /// <summary>
        /// 客服分类
        /// </summary>

        public int ClientTypeId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>

        public bool States {  get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string Bank {  get; set; }
        /// <summary>
        /// 地址电话
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string AddressTelePhone { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string AccountNumber {  get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string TaxIdNumber { get; set; }

        //业务联系人
        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string BusinessContacts { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string BusinessTel {  get; set; }
        // 财务联系人
        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)",IsNullable =true)]
        public string FinanceContacts { get; set; }
        /// <summary>
        /// 手机号23456789
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = true)]
        public string FinanceTel { get;set; }
    }
}
